package com.xplan.ae.service.impl;

import com.xplan.ae.dao.mapper.UserMapper;
import com.xplan.ae.model.po.User;
import com.xplan.ae.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * ClassName: UserServiceImpl
 * Description:UserServiceImpl
 *
 * @author chengluchao
 * @date: 2021/7/2 10:03
 * @since 1.1.14
 */
@Slf4j
@Service
public class UserServiceImpl implements IUserService {
    @Resource
    public UserMapper userMapper;

    @Override
    public long insert(User user) {
        log.info("insert user ,user={}", user);
        return userMapper.insert(user);
    }

    @Override
    public List<User> query(User user) {
        log.info("query user,user={}", user);
        return userMapper.query(user);
    }
}
